<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>分页</title>
</head>
<body>
<h2>分页功能</h2>

<hr>

<ul>
    {% for person in persons %}
        <li>{{ person.name }} - {{ person.age }}</li>
    {% endfor %}
    
</ul>

<ul class="btns">
    {% for page in pages %}
    	<li>
        <a href="{% url 'users:paginate2' page %}"><button>{{ page }}</button></a>
        </li>
    {% endfor %}
</ul>

</body>
</html>